<?php
/**
 * Define a custom exception class
 */
class EAPIException extends Exception{

	public function __Construct($message, $code = 0) {

		// construct the parent Exception class
		parent::__Construct($message, $code);
		
	}

	// custom string representation of object
	public function __toString() {
		return "<pre>[{$this->code}]: {$this->message}</pre>\n";
	}

}
?>